/**
 * @file   1124.cpp
 * @author Shuang Hu <hsmath@ubuntu>
 * @date   Wed Jun  2 22:40:21 2021
 * 
 * @brief  PAT advanced:1124
 * 
 * 
 */
#include<iostream>
#include<vector>
#include<map>
#include<string>
using namespace std;
int main(){
    int M,N,S;
    cin>>M>>N>>S;
    vector<string> followers;
    map<string,bool> ifget;
    for(int i=0;i<M;i++){
	string s;
	cin>>s;
	followers.push_back(s);
    }
    if(S>M){
	cout<<"Keep going..."<<endl;
    }else{
	int d=S-1;
	while(d<M){
	    cout<<followers[d]<<endl;
	    ifget[followers[d]]=true;
	    d+=N;
	    while(ifget[followers[d]]==true&&d<M){
		d++;
	    }
	}
    }
}
